<?php
require_once 'class/control.class.php';
ob_start();

$obj = new Control('consultar','institucional','2');
$obj->Consult();
$con = $obj->result->lista;
?>	
	<div id="descricao">	
		<div class="texto par">
			<p class="tituloGG"><?php echo $con['titulo']; ?></p><br />
			<?php echo $con['valor']; ?>
		</div>
		<div class="texto impar">
			<br /><br /><br />	
			<form id="formContato" method="post">		
				<h3>Nome</h3>
				<input type="text" name="nome" />
				<h3>Telefone</h3>
				<input type="text" name="telefone" />
				<h3>Celular</h3>
				<input type="text" name="celular" />
				<h3>Mensagem</h3>
				<textarea name="mensagem"></textarea>
				<br />
				<input type="submit" value="Enviar">
				<input type="hidden" name="pagina" 	id="pagina" value="Contato" />
				<input type="hidden" name="acao" 	id="acao" 	value="insert" />
			</form>
		</div>
		<br class="clear" />
	</div>
	<script type="text/javascript">
    	$(document).ready(function() {
    			var options = { 
    		        beforeSubmit:  loading,
    		        success:    sucesso,
    		        url:    'class/server.php'
    			};
    	  		$('#formContato').ajaxForm(options);
		});
	</script>
<?php 
$conteudo = ob_get_contents();
ob_get_clean();
include ("master.php");
?>